﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T.FAS.Runtime.Metadata.Entity.DataModel
{
    /// <summary>
    /// 关联带出元素
    /// </summary>
    [Serializable]
    public class AssociationRefElement //: SystemBase
    {

        /// <summary>
        /// ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 领域对象ID -- 废弃
        /// </summary>
        //public string CompositeNodeObjectID { get; set; }

        /// <summary>
        /// 数据对象ID
        /// </summary>
        public string DataObjectID { get; set; }

        /// <summary>
        /// 主模型节点虚拟元素，类型为Reference，例如CNO_DO_Dept.DeptName
        /// </summary>
        public string TargetElementID { get; set; }

        /// <summary>
        /// 外键关联数据对象的关联展示列ID，例如DO_Dept.Name
        /// </summary>
        public string SourceElementID { get; set; }

        /// <summary>
        /// 隶属的关联
        /// </summary>
        [JsonIgnore]
        public string AssociationID { get; set; }

        /// <summary>
        /// 领域模型ID
        /// </summary>
        [JsonIgnore]
        public string CompositeDataObjectID { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [JsonIgnore]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>        
        [JsonIgnore]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后修改人
        /// </summary>
        [JsonIgnore]
        public string LastModifier { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>        
        [JsonIgnore]
        public DateTime LastModifyTime { get; set; }
    }
}
